* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: 'Alice', serif;
  scroll-behavior: smooth;
  line-height: 1.6;
  background-color: pinls;
  color: #333;
}

/* HERO SECTION */
.hero {
  background-image: url("../images/IMG_1253.png"); /* landing background */
  height: 100vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  margin-top: -250px; /* adjust the value as needed */
}

.hero-title {
  color: #f33484;
  font-size: 8rem;
  text-align: center;
  padding: 20px;
}

.hero-subtitle {
  color: #f33484;
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 0 1rem;       
  max-width: 800px;        
  margin-left: auto; /* centers within container */
  margin-right: auto;
  box-sizing: border-box; /* ensure padding doesn't cause overflow */
}

/* MAIN & CONTENT SECTION */
.main-section {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 5%;
}

.content-section {
  flex: 1 1 55%; /* taking  ~55% of the width */
  background-color: white;
  border-radius: 10px;
  padding: 40px;
  text-align: left;
}

.content-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.content-section p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  line-height: 1.7; /* adds just a touch more space between lines*/
  font-family: 'Lato', sans-serif;
}

.content-section img {
  max-width: 60%;
  height: auto;
  margin-top: 10px;
  border-radius: 10px;
}

.centered-content {
  text-align: center;
  margin: 0 auto;
  max-width: 1000px;
}

.stats-row {
  display: flex;
  justify-content: center;
  align-items: stretch; /* makes boxes equal height */
  flex-wrap: wrap;
  gap: 10px; /* can make this up to 40 again */
  padding: 20px 30px;
  /* box-shadow: 0 2px 8px #ffd1ed; */
  border-radius: 10px;
}

.stat-box {
  flex: 1 1 40%;
  min-width: 300px;       
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-box .progress-container {
  width: 100%;
  max-width: none;
  margin: 20px 0;
}

.stat-box h2 {
  margin-bottom: 1px;
}

/* PROGRESS BAR */
.progress-container {
  margin: 40px auto;
  width: 100%;
  max-width: 600px;
  background-color: #eee;
  border-radius: 25px;
  overflow: hidden;
  height: 30px;
}

.progress-bar {
  width: 0;
  position: relative;
  height: 100%;
  background: linear-gradient(90deg, #f33484, #fdd6e6);
  transition: width 2s ease-in-out;
}

.content-section p.progress-text-large {
  font-size: 1.5rem;
  margin-bottom: 1px;
  font-family: 'Alice', sans-serif;
}

/* DONATION TOTAL */
p.donation-total {
  font-size: 2.7rem;
  font-weight: bold;
  color: #f33484;
  text-align: center;
}


/* DONATE BUTTON */
.donate-button {
  display: inline-block;
  background-color: #f33484;
  color: white;
  padding: 12px 24px;
  margin-top: 20px;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-family: 'Lato', sans-serif;
}

.donate-button:hover {
  background-color: #db2f77;
  transform: scale(1.05);
}

.donate-button-wrapper {
  text-align: center;
}

/* GALLERY */
.gallery {
  flex: 1 1 45%; /* taking ~45% of the width */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 2rem;
}

.gallery img {
  width: 100%;
  height: 280px; /* fixing height to make it uniform, can alter this */
  border-radius: 8px;
  object-fit: cover;
}

/* Pulse effect
@keyframes pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.donation-total.pulse {
  animation: pulse 0.4s ease;
} */

/* MEDIA QUERIES FOR RESPONSIVENESS */
@media (max-width: 992px) {
  .hero-title {
    font-size: 3rem;
    padding: 15px;
  }

  .content-section {
    padding: 40px 4%;
  }

  .gallery {
    flex: unset;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2.2rem;
    padding: 10px;
  }

  .content-section h2 {
    font-size: 2rem;
  }

  .content-section p {
    font-size: 1rem;
  }

  p.donation-total {
  font-size: 1.8rem;
  }
  
  .content-section img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
  }
}

@media (max-width: 768px) {
  .main-section {
    flex-direction: column;
  }

  .gallery {
    display: block;
  }
}

@media (max-width: 600px) {
  .gallery {
    display: block; /* or flex with column direction */
  }
}